﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AjaxControlToolkit;
using DevExpress.Web.ASPxTabControl;
using DAL;
using System.Data;

public partial class product : System.Web.UI.Page
{
    DataDB dataDB = new DataDB();

    protected void Page_Load(object sender, EventArgs e)
    {
        if(!this.Page.IsPostBack)
        {
            Fill();
        }
    }

    private void Fill()
    {
        DataRow urunDr = dataDB.UrunGetir(Util.QueryStringHelper.GetQueryStringByInt("pID"));
        if(urunDr != null)
        {
            ltCategory.Text = urunDr["CategoryName"].ToString();
            ltContent.Text = urunDr["ProductDetail"].ToString();
            ltHeader.Text = urunDr["ProductName"].ToString();
            ltName.Text = urunDr["ProductName"].ToString();
            ltPrice.Text = urunDr["Price"].ToString();
        }

        /*TabPage page = new TabPage();
        ASPxPageControl1.TabPages.Add(page);*/
    }
}
